package com.hs.excel.demos.listenter;

import cn.hutool.core.util.ObjectUtil;
import com.hs.excel.demos.pojo.RequestParm;
import org.apache.commons.math3.analysis.function.Abs;

import java.util.ArrayList;
import java.util.List;

public class Comont {
    public static Boolean ifParamNot(RequestParm parm){
        String tableName = parm.getTableName();
        List<String> terms = parm.getTerms();
        if (tableName == null){
            parm.setTableName("tableName");
        }
        if (ObjectUtil.isEmpty(terms)){
            return false;
        }else {
            return true;
        }
    }


    public static  List<String> insertList = new ArrayList<>();
    public static  List<String> updateList = new ArrayList<>();
}
